package com.example.policymode4;

import com.example.policymode4.factory.Payment;
import org.springframework.stereotype.Component;

@Component
public class AlipayPayment implements Payment {
    @Override
    public String getPayType() {
        return "alipay";
    }
    @Override
    public String pay(String order) {
        //调用阿里支付
        System.out.println("调用阿里支付");
        return "success";
    }
}

